/**
 * @license
 * Cesium - https://github.com/CesiumGS/cesium
 * Version 2.0
 *
 * Copyright 2011-2022 Cesium Contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Columbus View (Pat. Pend.)
 *
 * Portions licensed separately.
 * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
 */
define(["./defaultValue-15342b8e","./Matrix3-80f44511","./Check-de3c6afc","./EllipsoidGeometry-57d868bf","./VertexFormat-9d1aa16d","./Math-30274b8d","./Transforms-e4079fbb","./Matrix2-f9a8df5e","./RuntimeError-838954d6","./_commonjsHelpers-3aae1032-8335b124","./combine-94a63535","./ComponentDatatype-9fea081c","./WebGLConstants-755e55ac","./GeometryAttribute-7641c7d0","./GeometryAttributes-b2a04659","./GeometryOffsetAttribute-73cc39ea","./IndexDatatype-7bebbc6b"],(function(e,t,i,r,a,o,n,s,c,d,l,m,u,p,f,y,G){"use strict";function b(i){const a=e.defaultValue(i.radius,1),o={radii:new t.Cartesian3(a,a,a),stackPartitions:i.stackPartitions,slicePartitions:i.slicePartitions,vertexFormat:i.vertexFormat};this._ellipsoidGeometry=new r.EllipsoidGeometry(o),this._workerName="createSphereGeometry"}b.packedLength=r.EllipsoidGeometry.packedLength,b.pack=function(e,t,i){return r.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,i)};const k=new r.EllipsoidGeometry,x={radius:void 0,radii:new t.Cartesian3,vertexFormat:new a.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return b.unpack=function(i,o,n){const s=r.EllipsoidGeometry.unpack(i,o,k);return x.vertexFormat=a.VertexFormat.clone(s._vertexFormat,x.vertexFormat),x.stackPartitions=s._stackPartitions,x.slicePartitions=s._slicePartitions,e.defined(n)?(t.Cartesian3.clone(s._radii,x.radii),n._ellipsoidGeometry=new r.EllipsoidGeometry(x),n):(x.radius=s._radii.x,new b(x))},b.createGeometry=function(e){return r.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(t,i){return e.defined(i)&&(t=b.unpack(t,i)),b.createGeometry(t)}}));
